import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AddWeInertiaRoutingModule } from './add-we-inertia-routing.module';
import { AddWeComponent } from './add-we/add-we.component';
import { NgZorroAntdModule } from 'ng-zorro-antd';

import { Router } from '@angular/router';
declare var $: any;

@NgModule({
  declarations: [AddWeComponent],
  imports: [
    CommonModule,
    AddWeInertiaRoutingModule,
    NgZorroAntdModule,
    FormsModule,
    ReactiveFormsModule,
  ]
})
export class AddWeInertiaModule {
  constructor(public router: Router) { }
  ngOnInit(): void {
    // 进入路由滚动条置顶
    this.router.events
      .subscribe((event) => {
        $(window).scrollTop(0);
      });

  }
}
